﻿<UserControl x:Class="GrooveSharp.MusicCollection"
             xmlns:local="clr-namespace:GrooveSharp"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="500" >

    <UserControl.Resources>
        <ResourceDictionary Source="/Resources/GlassButton.xaml" />
    </UserControl.Resources>

    <DockPanel LastChildFill="True">
        <UniformGrid Columns="2" DockPanel.Dock="Bottom" >
            <StackPanel  Orientation="Horizontal" >
                <Button Name="refreshButton" Margin="5" Click="refreshButton_Click"  Style="{StaticResource GlassButtonMedium}">
                    <Image Source="/Images/refresh.png" Style="{StaticResource ImageForMedium}" />
                </Button>
                <Button Name="addButton" Margin="5" Click="addButton_Click" Style="{StaticResource GlassButtonMedium}" >
                    <Image Source="/Images/plus.png" Style="{StaticResource ImageForMedium}" />
                </Button>
            </StackPanel>
            <StackPanel Orientation="Vertical" >
                <TextBlock Name="textBlockScanProgress"  Foreground="White" >Scanning...</TextBlock>
                <ProgressBar Height="20" Name="progressFolderScan" ></ProgressBar>
                <TextBlock Name="textBlockScanErrorMessage" Foreground="Red" Visibility="Hidden">Error</TextBlock>
            </StackPanel>
        </UniformGrid>
        <WrapPanel Orientation="Horizontal"  DockPanel.Dock="Bottom" >
            <RadioButton Margin="5,2" Content="Folder structure" GroupName="Display" Name="radioFolder" IsChecked="True" 
                             Click="refreshButton_Click" />
            <RadioButton Margin="5,2" Content="Artist, album, track"  GroupName="Display" Name="radioArtistAlbumTrack" IsEnabled="True" 
                         Click="refreshButton_Click" IsChecked="True" />
            <RadioButton Margin="5,2" Content="Year, album, track"  GroupName="Display" Name="radioYearAlbumTrack" IsEnabled="True" 
                         Click="refreshButton_Click"/>

            <Popup Name="popLink" StaysOpen="False" Placement="Mouse" Closed="popLink_Closed">
                <local:TrackPopupInfo x:Name="info">
                </local:TrackPopupInfo>
            </Popup>

        </WrapPanel>

        <TreeView Name="treeViewCollection" Margin="5" MouseRightButtonUp="treeViewCollection_MouseRightButtonUp">
        </TreeView>


    </DockPanel>
</UserControl>
